﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class AddCirclePage : MonoBehaviour
{
    public Text addValue;

    public void SetValue(string value)
    {
        if (int.Parse(value) <= 20)
        {
            addValue.text = null;
            GetComponent<Image>().sprite = Resources.Load<Sprite>("BDUI/zhu/"+value);
        }
        else
        {
            addValue.text = value;
        }     
    }
}
